<div class="schoolTypes view">
    <h2><?php echo __('School Type'); ?></h2>
    <dl>
        <dt><?php echo __('Id'); ?></dt>
        <dd>
            <?php echo h($schoolType['SchoolType']['id']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Title'); ?></dt>
        <dd>
            <?php echo h($schoolType['SchoolType']['title']); ?>
            &nbsp;
        </dd>
    </dl>
</div>
<div class="actions">
    <h3><?php echo __('Actions'); ?></h3>
    <ul>
        <li><?php echo $this->Html->link(__('Edit School Type'), array('action' => 'edit', $schoolType['SchoolType']['id'])); ?> </li>
        <li><?php echo $this->Form->postLink(__('Delete School Type'), array('action' => 'delete', $schoolType['SchoolType']['id']), null, __('Are you sure you want to delete # %s?', $schoolType['SchoolType']['id'])); ?> </li>
        <li><?php echo $this->Html->link(__('List School Types'), array('action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New School Type'), array('action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List User Schools'), array('controller' => 'user_schools', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New User School'), array('controller' => 'user_schools', 'action' => 'add')); ?> </li>
    </ul>
</div>
<div class="related">
    <h3><?php echo __('Related User Schools'); ?></h3>
    <?php if (!empty($schoolType['UserSchool'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php echo __('Id'); ?></th>
                <th><?php echo __('Name'); ?></th>
                <th><?php echo __('City'); ?></th>
                <th><?php echo __('User Id'); ?></th>
                <th><?php echo __('State Id'); ?></th>
                <th><?php echo __('School Type Id'); ?></th>
                <th><?php echo __('Years At School'); ?></th>
                <th><?php echo __('Grade Level'); ?></th>
                <th><?php echo __('Graduated'); ?></th>
                <th class="actions"><?php echo __('Actions'); ?></th>
            </tr>
            <?php foreach ($schoolType['UserSchool'] as $userSchool): ?>
                <tr>
                    <td><?php echo $userSchool['id']; ?></td>
                    <td><?php echo $userSchool['name']; ?></td>
                    <td><?php echo $userSchool['city']; ?></td>
                    <td><?php echo $userSchool['user_id']; ?></td>
                    <td><?php echo $userSchool['state_id']; ?></td>
                    <td><?php echo $userSchool['school_type_id']; ?></td>
                    <td><?php echo $userSchool['years_at_school']; ?></td>
                    <td><?php echo $userSchool['grade_level']; ?></td>
                    <td><?php echo $userSchool['graduated']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View'), array('controller' => 'user_schools', 'action' => 'view', $userSchool['id'])); ?>
                        <?php echo $this->Html->link(__('Edit'), array('controller' => 'user_schools', 'action' => 'edit', $userSchool['id'])); ?>
                        <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'user_schools', 'action' => 'delete', $userSchool['id']), null, __('Are you sure you want to delete # %s?', $userSchool['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="actions">
        <ul>
            <li><?php echo $this->Html->link(__('New User School'), array('controller' => 'user_schools', 'action' => 'add')); ?> </li>
        </ul>
    </div>
</div>
